#37 new
Julien Palmas

why aasm_initial_state :initial => :pending in Authorization::AasmRoles ?

Reported by Julien Palmas | January 30th, 2009 @ 08:19 AM

Authorization::AasmRoles has the following on line 13 (as of sha 61cd9b3) :

aasm_initial_state :initial => :pending

Am I right saying this line is useless, and wrong ?

It looks a lot like the acts_as_state_machine routine :

acts_as_state_machine :initial => :pending

Anyhow, if this line has a use I'd have missed, it's not covered by the rpec tests. Comment the line, run the specs, and see it all pass.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.


People watching this ticket